home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Tele / C / CommsService 2.0.2.sit / commsService 2.0.2 Final / Service Definition Files / Cambridge University next >
Encoding:
Text File  |  1994-09-20  |  3.0 KB  |  82 lines  |  [TEXT/cSSv]

  1. #
  2. # commsService 2.0 Service Definition File.
  3. #
  4. Name=Cambridge University
  5. Description=Provides access to the Cambridge University Library's OPAC.
  6. Access is via 'janet', the UK network switch.
  7. Options available include -
  8.     University Library Main Building - catalogue of post-1977 imprints
  9.     University Library Main Building - title index of pre-1978 borrowable books
  10.     Union Catalogue of Departmental & College Libraries
  11.     Cambridge Union List of Serials
  12.     Cambridge Libraries Directory (including abbreviations)
  13.  
  14. TimeOut=0
  15. BreakEnabled=No
  16. PagesToScroll=10
  17. TerminationString=Connection closed
  18. ConnectionTool=TGE TCP Tool
  19. ConnectionTokens=HostName sun.nsf.ac.uk PortNumber 23 ConnectionType TELNET TelnetBinaryMode FALSE TerminalType VT100
  20. ConnectionMenu=No
  21. TerminalTool=VT102 Tool
  22. TerminalTokens=FontSize 9 Width 80 Cursor Underline Online True LocalEcho False AutoRepeat True RepeatControls False AutoWrap True NewLine False Scroll Jump ShowControls False SwapBackspaceDelete False TerminalMode ANSI/VT102 ShowStatusBar False ShowTabRuler False InverseVideo False InsertChar False OriginAtMargin False KeyClick False CursorKey ANSI Keypad Numeric AnswerBack "" KeyboardLocked False ActiveCharSet G0 NRCSet USASCII G0 USASCII G1 USASCII G2 USASCII G3 USASCII
  23. TerminalMenu=No
  24. ServiceScripts=on LoginToService
  25. Global ActiveService, FoundString
  26. if navigateJanet("UK.AC.CAM.UL", "press RETURN") then
  27. if SendToService(ActiveService,"Y" & return, "") then
  28. if ExpectFromService(ActiveService, 20, true, true, "Does this display as an e acute") then
  29. if FoundString = 1 then
  30. if SendToService(ActiveService, "Y" & return, "") then
  31. repeat
  32. get ExpectFromService(ActiveService, 20, true, true, "Press RETURN to continue", "CAMBRIDGE UNIVERSITY ON-LINE CATALOGUE SYSTEM")
  33. if FoundString = 2 then return true
  34. if FoundString ≠ 1 then exit repeat
  35. if not(SendToService(ActiveService, return, "")) then exit repeat
  36. end repeat
  37. end if
  38. end if
  39. end if
  40. end if
  41. end if
  42. return false
  43. end LoginToService
  44. ------------------
  45. function navigateJanet Address, FirstPrompt
  46. Global ActiveService, FoundString
  47. if ExpectFromService(ActiveService, 20, true, true, "All network ports in use", "login") then
  48. if FoundString > 0 then
  49. if FoundString = 1 then
  50. beep
  51. answer "All network ports are currently in use !!" & return & return & "Try again later !?!?"
  52. else
  53. if SendToService(ActiveService, "janet" & return, "") then
  54. if ExpectFromService(ActiveService, 20, true, true, "Password") then
  55. if FoundString = 1 then
  56. if SendToService(ActiveService, return, "") then
  57. if ExpectFromService(ActiveService, 20, true, true, "Enter a JANET hostname") then
  58. if FoundString = 1 then
  59. if SendToService(ActiveService, Address & return, "") then
  60. if ExpectFromService(ActiveService, 20, true, true, "Connection refused", FirstPrompt) then
  61. if FoundString = 2 then
  62. return true
  63. else
  64. beep
  65. answer "Connection has been refused !!" & return & return & "Try again later !?!?"
  66. end if
  67. end if
  68. end if
  69. end if
  70. end if
  71. end if
  72. end if
  73. end if
  74. end if
  75. end if
  76. end if
  77. end if
  78. return false
  79. end navigateJanet
  80.  
  81.  
  82.